package com.liuqi.voicenotes.data.db

import androidx.room.TypeConverter

class Converters {
    @TypeConverter
    fun fromPriority(value: String?): com.liuqi.voicenotes.data.Priority? =
        value?.let { com.liuqi.voicenotes.data.Priority.valueOf(it) }

    @TypeConverter
    fun priorityToString(p: com.liuqi.voicenotes.data.Priority?): String? = p?.name
}